requirejs.config({
	baseUrl: 'scripts',
	paths: {
		'app': 'app',
		'jquery': 'lib/jquery/dist/jquery',
		'angular': 'lib/angular/angular',
		'bootstrap': 'lib/bootstrap/bootstrap',
		'angular-animate': 'lib/angular-animate/angular-animate',
		'angular-cookies': 'lib/angular-cookies/angular-cookies',
		'angular-resource': 'lib/angular-resource/angular-resource',
		'angular-route': 'lib/angular-route/angular-route',
		'angular-sanitize': 'lib/angular-sanitize/angular-sanitize',
		'angular-touch': 'lib/angular-touch/angular-touch',
		'angular-file-upload': 'lib/ng-file-upload/angular-file-upload',
		'amazeui': 'lib/amazeui/amazeui.min',
		'global': 'global',
		'datatable': 'lib/datatable',
		'jqgrid': 'lib/jqgrid/jqGrid',
		'flot': 'lib/flot/jquery.flot',
		'flot-time': 'lib/flot/jquery.flot.time',
		'nicEditor': 'lib/nic-editor/nic-edit'	
	},
	shim: {
	    'angular': {
	    	'exports' : 'angular'
	    },
	    'angular-route': {
	    	'deps': ["angular"],
	    	'exports': 'angular-route'
	    },
	    'angular-resource': {
	    	'deps': ["angular"],
	    	'exports': 'angular-resource'
	    },
	  	'angular-mocks': {
     		'deps': ['angular'],
	    	'exports': 'angular-mocks'
	  	},
	  	'angular-file-upload': {
	  		 'deps': ['angular']
	  	},
	    'bootstrap': {
	        'deps': ['jquery']
	    },
	    'amazeui': {
	    	'deps': ['jquery']
	    },
	    'datatable': {
	    	'deps': ['jquery', 'bootstrap']
	    },
	    'flot': {
	    	'deps': ['jquery']
	    },
	    'flot-time': {
	    	'deps': ['flot']
	    },
 	 },
	priority: [
		  "angular"
	  ]
});

require( [
  'angular',
  'app',
  'angular-route',
  'angular-resource',
  'amazeui',
  'routes'
], function(angular) {
 	angular.bootstrap(document,["flightAdminApp"]);
});

